//
//  UserInfoHeaderCell.swift
//  JTYP
//
//  Created by Groot on 2017/12/8.
//  Copyright © 2017年 inspur. All rights reserved.
//

class UserInfoHeaderCell: UICollectionViewCell {
    
    static let CellIdentifier = String(describing: UserInfoHeaderCell.self)
    
    @IBOutlet weak var accountLab: UILabel!
    @IBOutlet weak var departLab: UILabel!
    @IBOutlet weak var pedometerLab: UILabel!
    
    override func awakeFromNib() {
        pedometerLab.backgroundColor = DefaultColor.green
        pedometerLab.clipsToBounds = true
        pedometerLab.layer.cornerRadius = 12.5
    }
    
    override func layoutSubviews() {
        super.layoutSubviews()
    }
    
    func setData(userInfo: CUser?) {
        
        accountLab.text = userInfo?.shiroUser?.loginName
        departLab.text = userInfo?.shiroUser?.deptName
        pedometerLab.text = "\(userInfo?.step ?? 0)"
    }
}
